package com.mcxx.modules.miniSalvation.order.dao.write;

import com.mcxx.modules.miniSalvation.order.dto.OrderSalaryDTO;
import com.mcxx.modules.miniSalvation.order.entity.OrderStateEntity;
import com.mcxx.modules.miniSalvation.order.entity.OrderEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderWriteDao {

    int insert(OrderEntity order);


    int inserts(List<OrderEntity> orderEntityList);


    int insertIgnoreNull(OrderEntity order);


    int updateIgnoreNull(OrderEntity order);


    int updateForCountryRevoke(OrderEntity order);


    int deleteByOrderId(String id);


    int updateOrderRecheckFlag(String orderId, int recheckFlag, String version);


    int updateState(OrderStateEntity orderStateEntity);


    int updateSalaryDate(String orderId, String startMonth, String endMonth);


    int batchChangeExpireDate(Map<String, Object> map);


    int batchUpdateSalaryNumber(List<OrderEntity> orderList);


    int batchChangeRecheckFlag(Map<String, Object> map);


    int batchDeleteRecheckOrder(List<String> orderIdList);


    int updateByIdAndVersion(OrderEntity order);


    int updateBizStateByQueryCheck(List<String> list);


    int changeSaveMember(String type,String id);

    int changeSaveMemberNum(int saveMemberNumber,String id);

    int updateBackUpFile(@Param("fileObjId")String fileObjId,@Param("orderId") String orderId);

    int updateHouseholdOrder(OrderEntity orderEntity);
}
